package com.boot.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class PublishQuestionDTO {
    @NotBlank(message = "问题标题不能为空")
    @Size(max = 200, message = "标题长度不能超过200字符")
    private String title;

    @NotBlank(message = "问题类型不能为空")
    private String type;

    @NotBlank(message = "问题描述不能为空")
    @Size(max = 20000, message = "问题描述不能超过20000字符")
    private String description;

    @Size(max = 20000, message = "预期结果不能超过20000字符")
    private String expected;

    @NotNull(message = "至少指定一位接单专家")
    private List<Long> expertIds; // 专家用户ID列表
}
